isPositive

open fun isPositive(value: Int)

test if a numeric value is greater or equal 1

Parameters

value

value to test

Throws

when value is not greater or equal 1


open fun isPositive(value: Int, name: String)

test if a numeric value is greater or equal 1

Parameters

value

value to test

name

value name for better error message

Throws

when value is not greater or equal 1